package com.xiaobai.design_pattern.factorymethod.createrole;

import com.xiaobai.design_pattern.factorymethod.productrole.Cake;
import com.xiaobai.design_pattern.factorymethod.productrole.StrawberryCake;

/**
 * @author wangtw
 * @ClassName StrawberryCakeCrator
 * @description: 草莓蛋糕生成工厂（具体工厂角色）
 * @date 2023/8/708:24
 */
public class StrawberryCakeCreator implements Creator{
    @Override
    public Cake factory() {

        return new StrawberryCake();
    }
}
